//
//  MyMovieTableViewCell.m
//  UI16_DouBan
//
//  Created by dllo on 15/11/5.
//  Copyright © 2015年 张磊. All rights reserved.
//

#import "MyMovieTableViewCell.h"

@implementation MyMovieTableViewCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createSubView];
    }
    return self;
}

- (void)createSubView
{
    self.title = [[UILabel alloc]initWithFrame:CGRectMake(10, 0, 375, 30)];
    [self.contentView addSubview:self.title];
    [_title release];
}

-(void)setMovie:(Movie *)movie
{
    if (_movie != movie) {
        [_movie release];
        _movie = [movie retain];
    }
    self.title.text = self.movie.movieName;
}



- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
